﻿using System;
using System.Collections.Generic;

namespace SharpSqlAnalyzer.util
{
	// Token: 0x02000071 RID: 113
	internal class CollectionUtil<T>
	{
		// Token: 0x060002C2 RID: 706 RVA: 0x002F8380 File Offset: 0x002F6580
		internal static void removeAll(List<T> list1, List<T> list2)
		{
			for (int i = 0; i < list2.Count; i++)
			{
				list1.Remove(list2[i]);
			}
		}

		// Token: 0x060002C3 RID: 707 RVA: 0x002F83AC File Offset: 0x002F65AC
		internal static void retainAll(List<T> list1, List<T> list2)
		{
			for (int i = list1.Count - 1; i >= 0; i--)
			{
				if (!list2.Contains(list1[i]))
				{
					list1.RemoveAt(i);
				}
			}
		}

		// Token: 0x060002C4 RID: 708 RVA: 0x002F83E2 File Offset: 0x002F65E2
		internal static List<T> RemoveAt(List<T> list1, int index)
		{
			list1.RemoveAt(index);
			return list1;
		}
	}
}
